package com.want.util;

/**
 * @author WangZhiJian
 * @since 2021/12/4 0004
 */
public class UriUtil {

    public static String contactPath(String first,String... nexts){
        for (String next : nexts){
            if(next.startsWith("/") && first.endsWith("/"))
                first = first + next.substring(1);
            else if(!next.startsWith("/") && !first.endsWith("/"))
                first = first +"/"+ next;
            else
            first =  first + next;
        }
        return first;
    }
}
